package jk.spider.api.event.resource;

import jk.spider.api.event.EventVisitor;
import jk.spider.model.Resource;

public class ResourceFetchErrorEvent extends ResourceRelatedEvent {

	protected int httpStatus;
	public ResourceFetchErrorEvent(Resource resource, int httpStatus) {
		super(resource);
		this.httpStatus = httpStatus;
	}

	public String getComment() {
		return null;
	}
	
	public int getHttpStatus() {
		return this.httpStatus;
	}

	public void accept(EventVisitor visitor) {
		visitor.visit(this);
	}
}
